package com.heima.feign.user;


import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("leadnews-user")
public interface IUserClient {
    /**
     * 根据用户id查询用户信息
     * @param userId
     * @return
     */
    @PostMapping("/api/v1/user/{userId}")
    ResponseResult getUseInfo(@PathVariable Integer userId);
}
